package cool.taomu.toolkit.rpc.thrift.module

import com.google.inject.AbstractModule
import com.google.inject.TypeLiteral
import cool.taomu.toolkit.rpc.thrift.server.provider.ThritfTThreadPoolArgsProvider
import java.util.Map
import org.apache.thrift.server.TThreadPoolServer.Args

class ThritfTThreadPoolServerModule extends AbstractModule {

	override configure() {
		bind(new TypeLiteral<Map<String, Args>>() {
		}).toProvider(ThritfTThreadPoolArgsProvider).asEagerSingleton;
	}
}
